@alain-ms-search-width: 250px;
@alain-ms-search-height: 32px;


.prod__search {
  position: relative;
  float: left;
  width: @alain-ms-search-width;

  @media screen and (max-width: 640px) {
    width: 100%;
  }

  height: @alain-ms-search-height;
  background: #fff;
  transition: all 0.3s linear;
  border: 1px solid #ccc;

  &:hover,
  &-active {
    width: @alain-ms-search-width;

    @media screen and (max-width: 768px) {
      width: @alain-ms-search-width;
    }

    @media screen and (max-width: 640px) {
      width: 100%;
    }

    background: #fff;

    .prod__search-outline {
      opacity: 1;
    }
  }

  &-ipt {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding-right: 22px;
    padding-left: 12px;
    color: #666;
    font-size: 12px;
    line-height: @alain-ms-search-height;
    background: transparent;
    border: none;
    outline: none;

    &:focus {
      box-shadow: none;
    }
  }

  &-icon {
    position: absolute;
    top: (@alain-ms-search-height - 14) / 2;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 26px;
    color: #666;

    &:hover {
      color: #00c1de
    }
  }

  &-outline {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s linear;
  }

  &::after {
    position: absolute;
    top: 5px;
    right: @alain-ms-search-height;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    content: '';
  }
}
